#include "namePoint.h"
#include <stdlib.h>
struct NamePoint
{
    double x;
    double y;
    char *name;
};

NamePoint * makeNamePoint(double x, double y, char *name) {
    NamePoint *point = (NamePoint *)malloc(sizeof(NamePoint));
    point->x = x;
    point->y = y;
    point->name = name;
    return point;
}

void setName(NamePoint *namePoint, char *name) {
    namePoint->name = name;
}

char *getName(NamePoint *namePoint){
    return namePoint->name;
}
